package com.scs.application.core.socket;

import com.scs.application.modules.fsd.socket.FsdWebSocketEndpoint;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 */
@Configuration
public class WebSocketConfig {
    @Bean(name="serverEndpointExporter")
    public ServerEndpointExporter getServerEndpointExporterBean(){
        return new ServerEndpointExporter();
    }

    /**
     * 注册 端点对象
     */
    @Bean
    public FsdWebSocketEndpoint fsdServerEndpoint() {
        return new FsdWebSocketEndpoint();
    }
}
